package com.crm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.crm.vo.ClientsVO;
import com.crm.dto.ContractDto;
import com.crm.dto.CountDto.ClientsDto;
import com.crm.entity.Contract;
import com.crm.result.PageResult;

public interface ContractService extends IService<Contract> {

    PageResult pageContract(ContractDto contractDto);

    void add(ContractDto contractDto);

    Contract selectContractById(Long id);

    PageResult ClientsPage(ClientsDto clientsDto);

    ClientsVO queryByDateRange(String beginCreateTime, String endCreateTime);

    /**
     * 商机转合同
     * @param id
     */
    void changeContract(Long id);

    PageResult SaleList(String beginCreateTime,String endCreateTime, ContractDto contractDto);

    ClientsVO saleCount(String beginCreateTime, String endCreateTime);
}
